package com.caochenlei.factory;

public class ShapeFactoryTest {
    public static void main(String[] args) {
        Shape rectangle = ShapeFactory.createShape("Rectangle");
        rectangle.draw();

        Shape square = ShapeFactory.createShape("Square");
        square.draw();

        Shape crcle = ShapeFactory.createShape("Circle");
        crcle.draw();
    }
}
